﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace FS_Config
{
	/// <summary>
	/// Interaction logic for YfmRelayPanel.xaml
	/// </summary>
	public partial class YfmRelayPanel : UserControl
	{
		public YfmRelayPanel()
		{
			InitializeComponent();
            AutoMode = 0;
		}

		public string FlickOnTime
		{
			get { return (string)GetValue(FlickOnTimeProperty); }
			set { SetValue(FlickOnTimeProperty, value); }
		}

		public static readonly DependencyProperty FlickOnTimeProperty =
				DependencyProperty.Register("FlickOnTime", typeof(string),
				typeof(YfmRelayPanel));//, new FrameworkPropertyMetadata(
				//new PropertyChangedCallback(OnFlickOnTimeChanged)));
/*
		private static void OnFlickOnTimeChanged(DependencyObject sender,
		DependencyPropertyChangedEventArgs e)
		{
            TextBox tb = (TextBox)sender;
            tb.Text = e.NewValue.ToString();
       
		}*/

		public string FlickOffTime
		{
			get { return (string)GetValue(FlickOffTimeProperty); }
			set { SetValue(FlickOffTimeProperty, value); }
		}

		public static readonly DependencyProperty FlickOffTimeProperty =
				DependencyProperty.Register("FlickOffTime", typeof(string),
				typeof(YfmRelayPanel));

		public string FlickReps
		{
			get { return (string)GetValue(FlickRepsProperty); }
			set { SetValue(FlickRepsProperty, value); }
		}

		public static readonly DependencyProperty FlickRepsProperty =
				DependencyProperty.Register("FlickReps", typeof(string),
				typeof(YfmRelayPanel));

		public int AutoMode
		{
			get { return (int)GetValue(AutoModeProperty); }
			set { SetValue(AutoModeProperty, value); }
		}

		public static readonly DependencyProperty AutoModeProperty =
				DependencyProperty.Register("AutoMode", typeof(int),
				typeof(YfmRelayPanel));

		public string OffDelay
		{
			get { return (string)GetValue(OffDelayProperty); }
			set { SetValue(OffDelayProperty, value); }
		}

		public static readonly DependencyProperty OffDelayProperty =
				DependencyProperty.Register("OffDelay", typeof(string),
				typeof(YfmRelayPanel));

		public string GroupName
		{
			get { return (string)GetValue(GroupNameProperty); }
			set { SetValue(GroupNameProperty, value); }
		}

		public static readonly DependencyProperty GroupNameProperty =
				DependencyProperty.Register("GroupName", typeof(string),
				typeof(YfmRelayPanel));



	}
}
